<?php

namespace app\api\controller\v1;

use app\api\controller\BaseController;
use support\Request;

class IndexController extends BaseController
{
    public function index()
    {
        return json(['code' => 200, 'msg' => "welcome webman-gii-api IndexController index"]);
    }

    public function ws_view(Request $request)
    {
        return view('ws/socket', ['name' => $request->input('name')??'webSocketView']);
    }

    public function thread()
    {

        return json(['code' => 200, 'data' => 11]);
    }

}